#!/bin/bash
# fake.sh
#
# Fake login script


fill_in ()
{
	echo -n "$1 "     # Get user input.
	
	read var             # May paste to fill in field.
                       # This shows how flexible "read" can be.
	parse $var 

}

parse ()
{
	case "$1" in
		q) break
		;;
		*) echo "bash: $1: command not found"
		;;
	esac
}    


while [ 1 ]
do
	fill_in "${USER}@${HOSTNAME}:${PWD/$HOME/~}$"
done

exit 0
